package com.example.landlord.demo.Service;

import com.example.landlord.demo.Controller.dto.LoginDTO;
import com.example.landlord.demo.Controller.request.ForgetRequest;
import com.example.landlord.demo.Controller.request.LoginRequest;
import com.example.landlord.demo.Controller.request.RegisterRequest;
import com.example.landlord.demo.Entity.User;

import java.util.List;

public interface IUserService {
    LoginDTO login(LoginRequest request);
    List<User> list();
    void register(RegisterRequest request);
    void forget(ForgetRequest request);
    void change(User request);
    User getById(Integer id);
    User getByuname(String uname);
    void updateP(User user);
    void addScore(String uname, int score);
//    PageInfo<User> page(UserPageRequest baseRequest);
}
